package com.jming.yygh.hosp.repository;

import com.jming.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author jming
 * @date 2021-04-23
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * 查询科室信息
     * @param hoscode 医院编号
     * @param depcode 科室编号
     * @return 查询结果
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
